package com.qzimp.fujiancuo.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qzimp.fujiancuo.entity.Architecture;
import com.qzimp.fujiancuo.entity.Region;
import com.qzimp.fujiancuo.entity.dto.RegionArcDto;
import com.qzimp.fujiancuo.mapper.ArchitectureMapper;
import com.qzimp.fujiancuo.mapper.RegionMapper;
import com.qzimp.fujiancuo.service.ArchitectureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
@Service
public class ArchitectureServiceImpl extends ServiceImpl<ArchitectureMapper, Architecture> implements ArchitectureService {
    @Autowired
    private RegionMapper regionMapper;

    @Autowired
    private ArchitectureMapper architectureMapper;
    @Override
    public Region selectByName(String regionName) {
        return regionMapper.selectByName(regionName);
    }

    @Override
    public List<Architecture> selectByRegionId(Integer regionId) {
        return architectureMapper.selectByRegionId(regionId);
    }
}
